package com.globefrog.framework.common.annontation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 耗时追踪注解.用于对处理时间过长的请求进行强行WARN日志打印
 * @author : caijinbang
 * @date : Create in 2021-01-17
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface TimeTracker {

  /**
   * 警告阈值.
   * @return 警告阈值
   */
  long waringThreshold() default -1L;
}
